package cn.newgrand.netcall.advertisement;

import javax.swing.JPanel;

import cn.newgrand.netcall.imp.advertisement.AdChatBottom;
import cn.newgrand.netcall.imp.advertisement.AdChatTop;
import cn.newgrand.netcall.imp.advertisement.AdMainWin;
/**
 * 广告管理类
 * 类中包括 创建主窗体广告、聊天窗体头部广告、以及聊天窗体底部广告
 * 
 * @author SidneyRen
 *
 */
public class AdvertisementManager {

	private JPanel adMainWin;
	private JPanel adChatTop;
	private JPanel adChatBottom;
	private static AdvertisementManager sigleton;
	private static final Object LOCK = new Object();

	private AdvertisementManager() {
	}

	public static AdvertisementManager getInstance() {
		synchronized (LOCK) {
			if (null == sigleton) {
				return new AdvertisementManager();
			}
			return sigleton;
		}
	}

	public AdMainWin getAdMainWin() {
		return new AdMainWin();
	}

	public AdChatTop getAdChatTop() {
		return new AdChatTop();
	}

	public AdChatBottom getAdChatBottom() {
		return new AdChatBottom();
	}

}
